package bk;
import java.util.*;



public class ExAllInOnce {
	
	
	public static void main(String[] args)
	{
		Scanner KeyBoard = new Scanner(System.in);
		int KeyNumber ;
		do{
			System.out.print("Nhap so bai muon kiem tra: ");
			
			 KeyNumber = KeyBoard.nextInt();
			switch(KeyNumber)
			{
				case 1:
					Ex01 ex01 = new Ex01();
					ex01.DoEx01();
					break;
				case 2:
					Ex02 ex02 = new Ex02();
					ex02.DoEx02();
					break;
				default: break;
					
			}
			System.out.print(" \nBan co muon thoat chuong trinh khong? 0/1?  ");
			KeyNumber = KeyBoard.nextInt();
		
		}while (KeyNumber == 0);		
		
		KeyBoard.close();
		System.out.print("\nProgram is exit!");
	}
	
	
}


